<input id="supports" name="supports" value="opensocial.Environment.ObjectType.ACTIVITY" tabindex="1" type="text">  
<input id="field" name="field" value="opensocial.Activity.Field.TITLE" tabindex="1" type="text">
<a href="javascript: supportsField()">Suports Field?</a> 
  <div id="info"> <b id="s"></b>-<b id="f"></b> -> <b id="value"></b> </div>
  <div id="dom"></div>

  <script type="text/javascript">

  //var div = document.getElementById('content_div');


  function supportsField() {  
    document.getElementById('s').innerHTML = document.getElementById("supports").value;
    document.getElementById('f').innerHTML = document.getElementById("field").value;
    var value = document.getElementById('value');

    <?php echo $env->initialize(); ?>
    document.getElementById('dom').innerHTML = <?php echo $env->getDomainName(); ?>
    value.innerHTML = env.supportsField(document.getElementById("supports").value,document.getElementById("field").value);
  }    
  </script>


